﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for ShoppingCart
/// </summary>
public class ShoppingCart
{
    private string id;

    public string Id
    {
        get { return id; }
        set { id = value; }
    }

    private string image;

    public string Image
    {
        get { return image; }
        set { image = value; }
    }
    private string name;

    public string Name
    {
        get { return name; }
        set { name = value; }
    }
    private int number;

    public int Number
    {
        get { return number; }
        set { number = value; }
    }
    private float price;

    public float Price
    {
        get { return price; }
        set { price = value; }
    }

    private float amount;

    public float Amount
    {
        get { return amount; }
        set { amount = value; }
    }

	public ShoppingCart()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public ShoppingCart(string id, string image, string name, int number, float price)
    {
        Id = id;
        Image = image;
        Name = name;
        Number = number;
        Price = price;
        Amount = number * price;
    }
}